$("#<%= @result[:input_id] %>").appendMessage({
  message: "<%= @result[:message] %>",
  icon: "<%= @result[:icon] %>"
});